import {mqttInit, sendMqtt} from "./mqtt_publish"
import config from "./config";

async function start() {
    // 加载配置
    try {
        // await settings.init();
        await config.init();
    } catch (e) {
        throw e;
    }
    mqttInit()

    setInterval(()=>{
        sendMqtt("111","111-111#", 123.45)
    }, 1000)
}

start()


